package edu.gatech.cs2340.spring2012.team38;

import android.database.sqlite.SQLiteDatabase;
/**
 *The TS_System class (a.k.a. TigerShroud System class is the coordinator for methods.
 * @author Norma Easter
 *
 */
public class TS_System
{
	//Need to know the name of the database
	private static SQLiteDatabase database;
	
	/**
	 * The login method attempts to login the user into the database
	 * @param uname the username to be found in the database
	 * @param passw the password associated with the username
	 * @param s the search object associated with the database
	 */
	public static void login(String uname, String passw, Search s)
	{
		/*if (s.searchForUser(uname, passw) == 1)
		{	
			Login_Page.loginUser(uname, passw, s);
			Sysytem.out.println(TS_System.notifyUser("Login Successful"));
		}
		
		else if
		{
			Login_Page.createNewUser(uname, passw, database);
			return TS_System.notifyUser("Login Unsucessful. Would you like to create a new user?");
		}
		
		else
		{
			return TS_System.notifyUser("Login Unsucessful.");
		}*/
	}
	
	/**
	 * Returns a string to notify the user of any/all activities
	 * @param notification
	 * @return the message string to be sent to the user
	 */
	public static String notifyUser(String notification)
	{
		return notification;
	}

}